package com.ruoyi.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.food.api.model.FoodDiscountVo;
import com.ruoyi.common.mybatis.core.page.PageQuery;
import com.ruoyi.common.mybatis.core.page.TableDataInfo;
import com.ruoyi.system.domain.ActivityDiscount;

import java.util.List;


/**
 * 活动折扣服务
 *
 * @author Administrator
 * @date 2023/03/13
 */
public interface ActivityDiscountService extends IService<ActivityDiscount> {

    /**
     * 页面活动折扣
     *
     * @param activityDiscount 活动折扣
     * @param pageQuery        页面查询
     * @return {@link TableDataInfo}<{@link ActivityDiscount}>
     */
    TableDataInfo<ActivityDiscount> pageActivityDiscount(ActivityDiscount activityDiscount, PageQuery pageQuery);

    /**
     * 保存活动折扣
     *
     * @param activityDiscount 活动折扣
     * @return int
     */
    int saveActivityDiscount(ActivityDiscount activityDiscount);

    /**
     * 更新活动折扣
     *
     * @param activityDiscount 活动折扣
     * @return int
     */
    int updateActivityDiscount(ActivityDiscount activityDiscount);

    /**
     * 通过id获得活动折扣
     *
     * @param discountId 折扣id
     * @return {@link ActivityDiscount}
     */
    ActivityDiscount getActivityDiscountById(Long discountId);

    /**
     * 分页菜品详情
     *
     * @param activityDiscount 活动折扣
     * @param pageQuery        页面查询
     * @return {@link TableDataInfo}<{@link FoodDiscountVo}>
     */
    TableDataInfo<FoodDiscountVo> pageFoodDetail(ActivityDiscount activityDiscount, PageQuery pageQuery);

    /**
     * 删除由ids
     *
     * @param discountIds 折扣id
     */
    void deleteByIds(List<Long> discountIds);
}

